from django.db import models


class User(models.Model):
    username = models.CharField(max_length=32)
    password = models.CharField(max_length=64)
    position = models.CharField(max_length=32)
    company = models.CharField(
        max_length=8,
        choices=[
            (0, '火箭队总部'),
            (1, '武汉分部'),
            (2, '日本分部'),
        ]
    )
    phone = models.CharField(max_length=16)
    create_time = models.DateTimeField(auto_now_add=True)
    last_time = models.DateTimeField(null=True, blank=True)
